import { request } from "@/util/request.js"

export function getBaiduAIAnswer(data){
  return request({
    method: 'post',
    url: '/baidu/ai/call',
    data
  })
}


export function getBaiduAIAnswerV2(data){
  return request({
    method: 'post',
    url: '/baidu/ai/callV2',
    data
  })
}

export function queryBaiduAIChatList(data){
  return request({
    method: 'get',
    url: '/baidu/ai/chatList',
    data
  })
}

export function updateBaiduAIChatTitle(data){
  return request({
    method: 'post',
    url: '/baidu/ai/updateChatTitle',
    data
  })
}

export function deleteBaiduAIChat(data){
  return request({
    method: 'post',
    url: '/baidu/ai/deleteChat',
    data
  })
}
